"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.沙兵 = void 0;
const GameUtils_1 = __importDefault(require("../GameUtils"));
const Big_1 = require("../core/Big");
const Point_1 = require("../core/Point");
class 沙兵 extends Big_1.Big {
    terrainAdapt() {
        switch (this.point.terrain) {
            case Point_1.Terrain.SHAN:
            case Point_1.Terrain.SHUI:
                this.die(this.player);
        }
        if (this.is_death) {
            return;
        }
        this.point.changeTerrain(Point_1.Terrain.SHA);
        this.gameMgr.sendBroadcast(GameUtils_1.default.getObj("play_sound", { "sound": "沙兵_化沙", "username": this.player.username }));
    }
}
exports.沙兵 = 沙兵;
